package com.gpframework.module.module.service;

import com.gpframework.module.module.domain.GpDeliveryNote;
import com.gpframework.module.module.domain.req.GpDeliveryNoteUpdate;
import com.gpframework.module.module.domain.vo.GpDeliveryNoteVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpDeliveryNote
 * @Author gpframework
 * @Date 2023-12-11
 * @Version 1.0.0
 * @Description 到货单Service接口
 */
public interface IGpDeliveryNoteService extends IService<GpDeliveryNote> {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-12-11
     * @Param [lqw]
     * @Return List<GpDeliveryNoteVo>
     */
    List<GpDeliveryNoteVo> listVo(QueryWrapper<GpDeliveryNote> lqw);

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-12-11
     * @Param [id]
     * @Return GpDeliveryNoteVo
     */
    GpDeliveryNoteVo getVoById(Long id);

    /**
     * 生成来料检验单
     * @param gpDeliveryNoteUpdate
     * @return
     */
    boolean addIncomingInspect(GpDeliveryNoteUpdate gpDeliveryNoteUpdate);

    /**
     * 生成生产到货单
     * @param ids
     * @param createBy
     * @return
     */
    boolean createDeliveryNote(List<Long> ids, String createBy);

    boolean edit(List<GpDeliveryNoteUpdate> list);

    boolean editOne(GpDeliveryNoteUpdate gpDeliveryNoteUpdate);

    boolean copy(Long id, Integer copyNum);
}
